package cn.snoworld.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("article_content")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "文章内容", description = "单独分表的大字段")
public class ArticleContent {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("内容id")
    private Integer id;

    @ApiModelProperty("文章id")
    private Integer articleId;

    @ApiModelProperty("文章内容")
    private String content;
}
